home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 038a / dframe26.zip / DFRAME.INC < prev    next >
Text File  |  1992-02-17  |  13KB  |  210 lines

  1. DECLARE SUB BOX.IT (TROW%, LCOL%, BROW%, RCOL%, BOXTYPE%, BOXFG%, BOXBG%, FILLFG%, FILLBG%, FILLCHAR%, SHADOW%, TITLE$)
  2. DECLARE SUB CLREOL (XPOS%, YPOS%,  BGC%)
  3. DECLARE SUB CLRSCRN ()
  4. DECLARE SUB DE.LAY (BYVAL SECONDS AS INTEGER)
  5. DECLARE SUB DETECT.ANSI ()
  6. DECLARE SUB DIS.PLAY (MSG$, FGC%, BGC%, BLINK%, BELL%, XPOS%, YPOS%, NL%, CENTER%, Caps%)
  7. DECLARE SUB ENTER ()
  8. DECLARE SUB ERRORS (ERRNUM%, ERRLINE%)
  9. DECLARE SUB EXIT.DOOR (YN$)
  10. DECLARE SUB FindFirstF (FileName$, Attr%, ErrCode%)
  11. DECLARE SUB FindNextF (ErrCode%)
  12. DECLARE SUB GetNameF (FileName$, NameLen%)
  13. DECLARE SUB INITIALIZE ()
  14. DECLARE SUB IN.PUT (RLEN%, WAITTIME!, IFG%, IBG%)
  15. DECLARE SUB KEYTIMER (KEYSTART!)
  16. DECLARE SUB LINES (SROW%, SCOL%, LENGTH%, DIR$, ENDS%, MID%, EFG%, EBG%, MFG%, MBG%)
  17. DECLARE SUB MAKE.BLT (HI.SCORE#)
  18. DECLARE SUB MAKE.BLT.CURRENT (HI.SCORE#)
  19. DECLARE SUB MORE ()
  20. DECLARE SUB MUSIC (TUNE$)
  21. DECLARE SUB OUT.PUT (LF%)
  22. DECLARE SUB SEND (MSG$, YN%)
  23. DECLARE SUB SHOW.BLT (YN$)
  24.  
  25. DECLARE FUNCTION EXISTS% (FileName AS STRING)
  26. DECLARE FUNCTION EXIST2% (FileName$)
  27.  
  28. DECLARE SUB BigPrint (St$, PixelCh$, BYVAL Row%, BYVAL Column%, BYVAL Attr%)
  29. DECLARE SUB CalcAttr (Fore%, Back%, Attr%)
  30. DECLARE SUB DelFile (FileName$, ErrCode%)
  31. DECLARE FUNCTION DriveSpace& (Drive$)
  32. DECLARE SUB Get4DosV (MajorV%, MinorV%)
  33. DECLARE SUB GetDrv (Drive$)
  34. DECLARE SUB GetDView (MajorV%, MinorV%)
  35. DECLARE SUB GetExecPath (HomePath$, PathLen%)
  36. DECLARE SUB GetKbd (Insert%, Caps%, NUM%, ScrollLock%)
  37. DECLARE SUB GetKbd1 (LShift%, RShift%, Control%, Alt%)
  38. DECLARE SUB GetSub (SubDir$, SubDirLen%)
  39. DECLARE SUB GetSub1 (Drive$, SubDir$, SubDirLen%, ErrCode%)
  40. DECLARE SUB Namecase (St$)
  41. DECLARE SUB RInstr (MainSt$, SubSt$, Posn%)
  42. DECLARE SUB SetError (BYVAL ErrorLevel%)
  43. DECLARE SUB SetKbd (BYVAL Insert%, BYVAL Caps%, BYVAL NUM%, BYVAL ScrollLock%)
  44. DECLARE SUB SubExist (SubDir$, IsThere%)
  45. DECLARE SUB WinCheck (MajorV%, MinorV%)
  46.  
  47. 'NOTE: The following variables are not universally available.
  48. '      Check DFRAME.DOC for variables available to each BBS system's file.
  49.  
  50. COMMON SHARED Active.Menu%              '0=Main,1=Msg,2=File,3=Sysop (WC 3.0+)
  51. COMMON SHARED Age$                      'WWIV
  52. COMMON SHARED Alias$                    'Caller's alias/handle
  53. COMMON SHARED AllowedBytes#             'Allowed BYTES from the PCB PWRD file.
  54. COMMON SHARED AlreadyConnected$         '"TRUE" or "FALSE"
  55. COMMON SHARED AnsiOn$                   '"TRUE" or "FALSE"
  56. COMMON SHARED AnsiSupport$              'Caller supports ANSI but in NG mode
  57. COMMON SHARED Banked.Time%              'WildCat! v3.0+
  58. COMMON SHARED BaudConn$                 'Connect rate of caller or "LOCAL"
  59. COMMON SHARED BaudOpen$                 'Port opening BPS
  60. COMMON SHARED BaudRate$                 'Baud and parity for DORINFO
  61.                                         'Baud rate or 'KB' for WWIV
  62. COMMON SHARED BBSColor%                 'BBS default color code (1-15)
  63. COMMON SHARED BBSDir$                   'Spitfire's home directory
  64. COMMON SHARED BBSSys$                   'Name of the BBS
  65. COMMON SHARED BBSName$                  'WWIV
  66. COMMON SHARED BirthDate$                'Caller's date of birth
  67. COMMON SHARED BltPath$                  'Path of the high score bulletin.
  68. COMMON SHARED CallAlarm%                'Caller alarm status.     -1=ON, 0=OFF
  69. COMMON SHARED CallersLoc$               'Location of CALLERSx log
  70. COMMON SHARED CallSign$                 'WWIV
  71. COMMON SHARED ChatStatus$               'Chat mode status. "U" or "A"
  72. COMMON SHARED City$                     'Caller's city and state
  73. COMMON SHARED CNAMESLoc$                'Location of CNAMES
  74. COMMON SHARED Columns$                  'WWIV
  75. COMMON SHARED Command.Line$             'Y or N, WildCat! v3.0+
  76. COMMON SHARED Comport%                  'COM port number
  77. COMMON SHARED ConfReg$                  'Conference registration
  78. COMMON SHARED Console$                  '"LOCAL" or "REMOTE"
  79. COMMON SHARED Daily.Bytes.Alwd#         'Daily download max. K limit
  80. COMMON SHARED DailyDnldBytes&           'Bytes downloaded so far today.
  81. COMMON SHARED DataBits$                 '7 OR 8
  82. COMMON SHARED DataDir$                  'WWIV
  83. COMMON SHARED DeleteFlag%               '1 = delete this record, 0 = keep
  84. COMMON SHARED Display%                  'Local display status.    -1=ON, 0=OFF
  85. COMMON SHARED DLPerDay%                 'Number of downloads allowed per day
  86. COMMON SHARED DLToday%                  'Number of downloads made today
  87. COMMON SHARED Door.DL&                  'WildCat 3.0+ # files DL'ed in door
  88. COMMON SHARED Door.KB&                  'WildCat 3.0+ Total K DL'ed in door
  89. COMMON SHARED Door.Logoff$              'WildCat 3.0+ Y or N if user logged
  90.                                         'off from within the door
  91. COMMON SHARED DoorNumber$               '
  92. COMMON SHARED Doors.Opened%             'Number of Doors he has opened
  93. COMMON SHARED DoorSys%                  '1 = using DOOR.SYS, 0 otherwise
  94. COMMON SHARED DorInfo%                  '1 = using DORINFx.DEF, 0 otherwise
  95. COMMON SHARED DorInfo13th$              '13th line for RBBS DORINFO
  96. COMMON SHARED Downloads%                'Number of downloads made
  97. COMMON SHARED ECC%                      'Error corrected connect.  1=YES, 0=NO
  98. COMMON SHARED EnterDoor$                'Time caller entered the door
  99. COMMON SHARED Event$                    'Event time (hh:mm)
  100. COMMON SHARED ExeName$                  'Name of .EXE (Programmer supplied)
  101. COMMON SHARED ExitFrom$                 'Conference exited BBS from
  102. COMMON SHARED Expert$                   'Expert mode - "Y" or "N"
  103. COMMON SHARED Expire$                   'Caller's expiration date
  104. COMMON SHARED ExpiredLevel&             'Expired Security level
  105. COMMON SHARED ExtraTime&                'Number of seconds gained since logon
  106. COMMON SHARED First$                    'Caller's first name
  107. COMMON SHARED FrontEnd$                 '"TRUE" or "FALSE" if booted from a
  108.                                         'front end program.
  109. COMMON SHARED GfilesDir$                'WWIV
  110. COMMON SHARED Gold$                     'WWIV
  111. COMMON SHARED Graphics%                 'Graphics mode status.    -1=ON, 0=OFF
  112. COMMON SHARED HPhone$                   'Caller's home phone number
  113. COMMON SHARED IRQ%                      'For use with non-standard IRQ's
  114.                                         '(other than IRQ3 or IRQ4)
  115. COMMON SHARED LastConf%                 'Conference number last in.
  116. COMMON SHARED LastFArea$                'Last file area
  117. COMMON SHARED LastMConf$                'Last message conference
  118. COMMON SHARED LastMsg$                  'Last message read
  119. COMMON SHARED LastOn$                   'Date caller last logged on (MM-DD-YY)
  120. COMMON SHARED LastOnDate$               'Date and time of last call
  121. COMMON SHARED LastScan$                 'Date of last directory/new files scan
  122. COMMON SHARED LastTimeOn$               'Last time caller was on
  123. COMMON SHARED Level&                    'Caller's security level
  124. COMMON SHARED LocalUsr%                 '-1 = LOCAL mode, 0 = Online
  125. COMMON SHARED Log$                      'WWIV
  126. COMMON SHARED LogonHrs$                 'Time caller logged on in HH:MM format
  127. COMMON SHARED LogonMins%                'Time caller logged on in minutes
  128. COMMON SHARED LogonSecs&                'Number of seconds since midnight
  129.                                         'when caller logged on to the BBS.
  130. COMMON SHARED LogonTimeDate$            'Date and time of this call
  131. COMMON SHARED MaxBaud$                  'Maximum baud of the system
  132. COMMON SHARED Max.Files%                'Maximum daily files available
  133. COMMON SHARED MinsCredit%               'Time credits in minutes
  134. COMMON SHARED MNP$                      '"MNP/ARQ Connection" or
  135.                                         '"Normal Connection"
  136. COMMON SHARED Mode%                     '0 = Non-color, -1 = color is on
  137. COMMON SHARED Msgs.Left%                'Total messages left
  138. COMMON SHARED Msgs.Read%                'Total messages read
  139. COMMON SHARED Name$                     'Caller's full name
  140. COMMON SHARED Network%                  '1 = BBS is networked, 0 = no network
  141. COMMON SHARED Network$                  'DORINFO network type
  142. COMMON SHARED NodeNum%                  'Node number
  143. COMMON SHARED NoDTELock$                '"TRUE" or "FALSE" if configured for
  144.                                         'software data flow control.
  145. COMMON SHARED Num.Dl.Today%             'Files downloaded so far today
  146. COMMON SHARED Owner$                    'DoorFrame registered owners name.
  147. COMMON SHARED PageBell%                 'Page bell status.        -1=ON, 0=OFF
  148. COMMON SHARED PageLen%                  'Caller's page length
  149. COMMON SHARED Parity%                   'Parity (word length?) (7 or 8)
  150. COMMON SHARED Parity$                   'WWIV
  151. COMMON SHARED Password$                 'Password of caller
  152. COMMON SHARED PathGen$                  'Path to the GEN directory
  153.                                         'Path to Allfiles.dat DIR for WC 3.0+
  154. COMMON SHARED PathMain$                 'Path to the MAIN directory
  155.                                         'Path to BBS dir. for WC 3.0+
  156. COMMON SHARED PCBDat$                   'Location of PCBOARD.DAT
  157. COMMON SHARED PCBoard%                  '1 = PCBoard, 0 = non-PCBoard
  158. COMMON SHARED PCB.Version%              'PCBoard version number (i.e. 1450)
  159. COMMON SHARED Printer%                  'Printer status.          -1=ON, 0=OFF
  160. COMMON SHARED ProgName$                 'Name of DOOR (Programmer supplied)
  161. COMMON SHARED Protocol$                 'Caller's default protocol (Z, X, etc)
  162. COMMON SHARED Response$                 'Returned after a CALL to IN.PUT
  163. COMMON SHARED Sec.Level.Name$           'WildCat! v3.0+
  164. COMMON SHARED Seconds&                  'Number of seconds since midnight
  165.                                         'when caller entered the door.
  166. COMMON SHARED Serial$
  167. COMMON SHARED Sex$                      'WWIV
  168. COMMON SHARED Spitfire%                 '1 = using SFDOORS.DAT, 0 otherwise
  169. COMMON SHARED SysLoc$
  170. COMMON SHARED SysOp%                    '1 = SYSOP is using DOOR, 0 otherwise
  171. COMMON SHARED Sysop$                    'WWIV
  172. COMMON SHARED SysOpFirst$               'Sysop's first name
  173. COMMON SHARED SysOpFlag$                '" ", "N"=Sysop Next, "X"=Exit to DOS
  174. COMMON SHARED SysopKeys%                'Sysop keys 0=arrows, 1=alternate set
  175. COMMON SHARED SysOpLast$                'Sysop's last name
  176. COMMON SHARED SysOpName$                'Sysop's first and last names
  177. COMMON SHARED SysOpNext$                '"TRUE" or "FALSE"
  178. COMMON SHARED TimeAdjust%               'Use to adjust the callers time
  179.                                         'remaining online (in minutes).
  180. COMMON SHARED TimeAlwd%                 'Minutes caller is allowed
  181. COMMON SHARED TimeLastCall$             'Time of last call (hh:mm)
  182. COMMON SHARED TimeLeft%                 'Time caller has left in minutes
  183. COMMON SHARED TimeNow%                  'Current time in minutes
  184. COMMON SHARED TimeOff$                  'Time caller exited the door
  185. COMMON SHARED TimeOut%                  'Keyboard timeout - defaults to 5 mins
  186. COMMON SHARED TimesOn%                  'Number of times on system
  187. COMMON SHARED TimeUsed%                 'Time used so far today in minutes
  188. COMMON SHARED Total.Bytes.Alwd#         'Max. bytes allowed
  189. COMMON SHARED Total.Bytes.Today#        'Daily download K total
  190. COMMON SHARED Total.KB.Dl#              'Total K bytes downloaded
  191. COMMON SHARED Total.KB.Ul#              'Total K bytes uploaded
  192. COMMON SHARED TotDnldBytes&             'Total number of BYTES downloaded
  193. COMMON SHARED TotUpldBytes&             'Total number of BYTES uploaded
  194. COMMON SHARED Uploads%                  'Number of uploads made
  195. COMMON SHARED UserComment$              'User maintained comment
  196. COMMON SHARED User.Info%                '1=write USERINFO.DAT on exit, 0=don't
  197. COMMON SHARED UserNum%                  'Record number of caller
  198. COMMON SHARED UsersLoc$                 'Location of PCBOARD USERS file
  199. COMMON SHARED UsrSys%                   '1 = using USERS.SYS, 0 otherwise
  200. COMMON SHARED Version$                  'DOOR version # (Programmer supplied)
  201. COMMON SHARED WildCat%                  '1 = using CALLINFO.BBS, 0 otherwise
  202. COMMON SHARED WildCat3%                 '1 = using USERINFO.DAT, 0 otherwise
  203. COMMON SHARED WPhone$                   'Caller's work phone number
  204. COMMON SHARED WWIV%                     '1 = using CHAIN.TXT, 0 otherwise
  205.  
  206. CONST BLACK = 0, BLUE = 1, GREEN = 2, CYAN = 3, RED = 4, MAGENTA = 5
  207. CONST YELLOW = 6, WHITE = 7, GRAY = 8, LBLUE = 9, LGREEN = 10, LCYAN = 11
  208. CONST LRED = 12, LMAGENTA = 13, LYELLOW = 14, LWHITE = 15
  209.  
  210.